package com.nuoniu.sibanyun.mapper.erp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.erp.ErpTeam;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 班组 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2020-12-30
 */
public interface ErpTeamMapper extends BaseMapper<ErpTeam> {

    @Select("select * from mab_team where company_id=#{companyId} and code=#{code}")
    ErpTeam getByCode(Integer companyId, String code);

    @Select("select * from mab_team where company_id=#{companyId} and name=#{name}")
    ErpTeam getByName(Integer companyId, String name);
}
